//package com.sailfish.springbootdemo.controller.db5;
//
//
//import com.sailfish.springbootdemo.pojo.Result;
//import com.sailfish.springbootdemo.pojo.db2.AxiConfig;
//import com.sailfish.springbootdemo.pojo.db2.PcbParentFactoryInfo;
//import com.sailfish.springbootdemo.service.db2.PcbParentFactoryInfoService;
//import com.sailfish.springbootdemo.service.db5.BoardProportionService;
//import com.sailfish.springbootdemo.service.db5.BoardProportionServiceImpl;
//import com.sailfish.springbootdemo.utils.ResultUtil;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
//import java.util.List;
//
//@RestController
//@CrossOrigin
//@RequestMapping("/thirdApiH3c/v1")
//public class ThirdApiH3c2Controller {
//
//    @Autowired
//    private BoardProportionService boardProportionService;
//
//
//    @PostMapping("/getBoarProportion")
//    private Result getBoarProportion() {
//        System.out.println("start getBoarProportion");
//        System.out.println("boardProportionService:"+boardProportionService);
//        try{
////            BoardProportionService boardProportionService = new BoardProportionServiceImpl();
//            Result result = boardProportionService.getBoarProportion();
//            return result;
//        }
//        catch (Exception e){
//            return ResultUtil.error(500,"Exception:"+e.getMessage(),e.getMessage(),null);
//        }
//
//    }
//
//    @PostMapping("/getBoardTableInfo")
//    private Result getBoardTableInfo()  {
//        System.out.println("start getBoardTableInfo");
//        System.out.println("boardProportionService:"+boardProportionService);
//        try {
////            BoardProportionService boardProportionService = new BoardProportionServiceImpl();
//            Result result = boardProportionService.getBoardTableInfo();
//            return result;
//        }
//        catch (Exception e){
//            return ResultUtil.error(500,"Exception:"+e.getMessage(),e.getMessage(),null);
//        }
//    }
//
//    @PostMapping("/getAxiConfigList")
//    private Result getAxiConfigList() {
//        try{
////            BoardProportionService boardProportionService = new BoardProportionServiceImpl();
//            List<AxiConfig> axiConfigList = boardProportionService.getAxiConfigList();
//            return ResultUtil.success(axiConfigList);
//        }
//        catch (Exception e){
//            return ResultUtil.error(500,e.getMessage(),e.getMessage(),null);
//        }
//
//    }
//
//    @PostMapping("/updateAxiConfig")
//    private Result updateAxiConfig(@RequestBody String data) {
////        BoardProportionService boardProportionService = new BoardProportionServiceImpl();
//        Result result = boardProportionService.updateAxiConfig(data);
//        return result;
//    }
//}
